FROM anapsix/alpine-java:8_server-jre_unlimited

MAINTAINER jeecgos@163.com

ENV TZ=Asia/Shanghai
RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime

ENV JAVA_OPTS="-Djava.security.egd=file:/dev/./urandom"
ENV APP_JAR=jeecg-boot-business-webapp-2.2.1.jar
ENV APP_DIR=/jeecg-boot

RUN mkdir -p $APP_DIR

WORKDIR $APP_DIR

COPY ./target/$APP_JAR $APP_DIR

ENTRYPOINT ["java","$JAVA_OPTS", "-jar", "$APP_JAR"]

EXPOSE 8080
